import hyRequest from '@/service'

// 行政组织管理-查询全部
export const getAdministrationList = () => {
  return hyRequest.post({
    url: '/village/govPanel/govOrg/findAll'
  })
}

// 区域概况-详情 数字仓
export const getArea = (form: any) => {
  return hyRequest.post({
    url: '/village/areaOverview/select',
    data: form,
    isFormData: true
  })
}

// 区域概况-修改 数字仓
export const setArea = (form: any) => {
  return hyRequest.post({
    url: '/village/areaOverview/update',
    data: form
  })
}

// 人口结构-详情 数字仓
export const getPopulation = (form: any) => {
  return hyRequest.post({
    url: '/village/population/select',
    data: form,
    isFormData: true
  })
}

// 人口结构-修改 数字仓
export const setPopulation = (form: any) => {
  return hyRequest.post({
    url: '/village/population/update',
    data: form
  })
}

// 资产概况-详情 数字仓
export const getAssetData = (form: any) => {
  return hyRequest.post({
    url: '/village/assetData/select',
    data: form,
    isFormData: true
  })
}

// 资产概况-修改 数字仓
export const setAssetData = (form: any) => {
  return hyRequest.post({
    url: '/village/assetData/update',
    data: form
  })
}

// 资产管理-详情 数字仓
export const getAssetManage = (form: any) => {
  return hyRequest.post({
    url: '/village/assetManage/select',
    data: form,
    isFormData: true
  })
}

// 资产管理-修改 数字仓
export const setAssetManage = (form: any) => {
  return hyRequest.post({
    url: '/village/assetManage/update',
    data: form
  })
}

// 产值汇总-详情 数字仓
export const getAssetSummary = (form: any) => {
  return hyRequest.post({
    url: '/village/assetSummary/select',
    data: form,
    isFormData: true
  })
}

// 产值汇总-修改 数字仓
export const setAssetSummary = (form: any) => {
  return hyRequest.post({
    url: '/village/assetSummary/update',
    data: form
  })
}

// 产值趋势-详情 数字仓
export const getAssetTrend = (form: any) => {
  return hyRequest.post({
    url: '/village/assetTrend/select',
    data: form,
    isFormData: true
  })
}

// 产值趋势-修改 数字仓
export const setAssetTrend = (form: any) => {
  return hyRequest.post({
    url: '/village/assetTrend/update',
    data: form
  })
}
